<template>
	<div>
		<el-button type="primary" size="default" @click="longSyncTask">
			长任务
		</el-button>
	</div>
</template>
<script setup>
	let longSyncTask = () => {
		const start = Date.now();
		while (Date.now() - start < 50) {
			// 空循环消耗时间
		}
		console.log('同步任务完成，耗时超过50ms');
	};
</script>
